@isTest
private class ShiyeApplicationGoodsDetailsTest {

    static testMethod void testMethod1() {
        ShiyeApplicationGoodsDetailsHandler s = new ShiyeApplicationGoodsDetailsHandler();
        s.test();
    }

    /*
    static testMethod void testMethod1() {
        ShiyeApplicationGoods__c sa = new ShiyeApplicationGoods__c();
        insert sa;

        ShiyeApplicationGoodsDetails__c sad1 = new ShiyeApplicationGoodsDetails__c(
        	ShiyeApplicationGoods__c = sa.Id,
        	PriceBelowCompanyPrice__c = '是',
        	ProductLine__c = '分子'
        );
        ShiyeApplicationGoodsDetails__c sad2 = new ShiyeApplicationGoodsDetails__c(
        	ShiyeApplicationGoods__c = sa.Id,
        	PriceBelowCompanyPrice__c = '否',
        	ProductLine__c = '血型'
        );
        ShiyeApplicationGoodsDetails__c sad3 = new ShiyeApplicationGoodsDetails__c(
        	ShiyeApplicationGoods__c = sa.Id,
        	PriceBelowCompanyPrice__c = '是',
        	ProductLine__c = '生化'
        );
        ShiyeApplicationGoodsDetails__c sad4 = new ShiyeApplicationGoodsDetails__c(
        	ShiyeApplicationGoods__c = sa.Id,
        	PriceBelowCompanyPrice__c = '否',
        	ProductLine__c = '免疫'
        );
        ShiyeApplicationGoodsDetails__c sad5 = new ShiyeApplicationGoodsDetails__c(
        	ShiyeApplicationGoods__c = sa.Id,
        	PriceBelowCompanyPrice__c = '是',
        	ProductLine__c = '血液'
        );
        ShiyeApplicationGoodsDetails__c sad6 = new ShiyeApplicationGoodsDetails__c(
        	ShiyeApplicationGoods__c = sa.Id,
        	PriceBelowCompanyPrice__c = '否',
        	ProductLine__c = '体液'
        );
        ShiyeApplicationGoodsDetails__c sad7 = new ShiyeApplicationGoodsDetails__c(
        	ShiyeApplicationGoods__c = sa.Id,
        	ProductLine__c = '微生物'
        );
        insert new ShiyeApplicationGoodsDetails__c[] {sad1, sad2, sad3, sad4, sad5, sad6, sad7};

        sa = [select PriceBelowCompanyPrice__c, DStatistics__c, AEStatistics__c, BCTStatistics__c from ShiyeApplicationGoods__c where Id = :sa.Id];
        System.assertEquals(sa.PriceBelowCompanyPrice__c, 3);
        System.assertEquals(sa.DStatistics__c, 2);
        System.assertEquals(sa.AEStatistics__c, 2);
        System.assertEquals(sa.BCTStatistics__c, 3);

        sad1.PriceBelowCompanyPrice__c = '否';
        sad1.ProductLine__c = '微生物';
        sad7.PriceBelowCompanyPrice__c = '否';
        sad7.ProductLine__c = '免疫';
        update new ShiyeApplicationGoodsDetails__c[] {sad1, sad7};
			
        sa = [select PriceBelowCompanyPrice__c, DStatistics__c, AEStatistics__c, BCTStatistics__c from ShiyeApplicationGoods__c where Id = :sa.Id];
        System.assertEquals(sa.PriceBelowCompanyPrice__c, 2);
        System.assertEquals(sa.DStatistics__c, 1);
        System.assertEquals(sa.AEStatistics__c, 3);
        System.assertEquals(sa.BCTStatistics__c, 3);
        
        delete new ShiyeApplicationGoodsDetails__c[] {sad1};
    }
    */
}